#pragma once

#ifndef _INC_EthernetClient_
#define _INC_EthernetClient_

class EthernetClient
{
private:
	BOOL _connected  ;
	BOOL _available  ;
	char _nextChar  ;

public:

	void SentHTTPMessage();

	void stop();

	void flush();

	BOOL connect(char * server, int port);

	BOOL connect(char * server);

	BOOL available();

	BOOL connected();

	//Only need to implement this print for client as others call it
	void print(char * strn);

	void println();

	void println(char * strn);

	void print(int num);

	void println(int num);

	void print(float num, int index);
	void println(float num, int index);

	char read();


};



#ifdef __ethernetclientcpp__
EthernetClient client;
#else
extern EthernetClient client;
#endif __ethernetclientcpp__

#endif _INC_EthernetClient_